#!/bin/bash
# Generate HTML file from a code file using vim

# Author: Miki Tebeka <miki.tebeka@gmail.com>
# License: BSD (see LICENSE)

if [ $# -lt 1 ]; then
	echo "usage: `basename $0` FILE[s]"
	exit 1
fi

for file in $*
do
	gvim -c 'se nu' -c 'so $VIMRUNTIME/syntax/2html.vim' -c w -c 'qa!' $file
done


